const axios = require('axios')
const BASE_URL = process.env[ 'VUE_APP_BASE_URL ' ]

const instance = axios.create({
  baseURL: BASE_URL
})

instance.interceptors.request.use(async config => {
  return config
}, async error => {
  return await error
})

instance.interceptors.response.use(async config => {
  return config
}, async error => {
  return await error
})

export default instance
